package com.example.xiaomengai.entity;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 功能
 * 作者：梦天
 * 日期：2025/4/27 9:23
 */
@Data
public class Relation {
    private Node start;
    private Node end;
    private List<Segment> segments;
    private Double length;
    @Data
    public static class Node {
        private Long identity;
        private List<String> labels;
        private Map<String, Object> properties;
        private String elementId;
    }

    @Data
    public static class Relationship {
        private Long identity;
        private Long start;
        private Long end;
        private String type;
        private Map<String, Object> properties;
        private String elementId;
        private String startNodeElementId;
        private String endNodeElementId;
    }

    @Data
    public static class Segment {
        private Node start;
        private Relationship relationship;
        private Node end;
    }
}
